package com.bigflexlib.async
{
	import flash.events.Event;
	
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;

	public class CallbackLib
	{

		public static function stripEvent( e:* ):*
		{
			if ( e is ResultEvent )
				return ( e as ResultEvent ).result;
				
			if ( e is FaultEvent )
				return ( e as FaultEvent ).fault;
				
			return e;				
		}
		
	}
}